import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'


//导入插件
import toast from "components/common/toast"
//导入解决移动端延迟插件
import FastClick from "fastclick"
//导入图片懒加载插件
import VueLazyLoad from "vue-lazyload"

Vue.config.productionTip = false
    //安装toast插件
Vue.use(toast)
    //解决移动端300ms延迟
FastClick.attach(document.body)
    //使用懒加载的插件
Vue.use(VueLazyLoad, {
    loading: require("./assets/img/common/loading.gif")
})

//vue实例是可以作为总线事件实例的
Vue.prototype.$bus = new Vue()

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')